FROM nvidia/cuda:11.8.0-devel-ubuntu22.04 AS builder

RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list && \
    apt -y update && apt install -y \
    curl \
    wget \
    vim \
    bc \
    git

RUN apt -y update && \
	apt install --no-install-recommends -y g++ cmake ninja-build llvm-15-dev libz-dev libglew-dev flex bison libfl-dev libboost-thread-dev libboost-filesystem-dev nvidia-cuda-toolkit-gcc libzstd-dev ninja-build

COPY . /ocelot
